import { FormTemplate } from '../../Utils/FormTemp'

const FormModify = ({ data, ModalEvent, Off }) => {

    console.log(data)


    const { columns, item } = data
    ModalEvent.useSubscription(val => { if (val.type === 'offModal') Off() })
    return <FormTemplate columns={columns} ModalEvent={ModalEvent} init={item} />
};

export default FormModify;